home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
cppdll
/
console.hxx
< prev
next >
Wrap
Text File
|
1990-02-27
|
993b
|
46 lines
#ifndef CONSOLEH
#define CONSOLEH
#undef LPTR
#include <windows.hxx>
#define export
#define import extern
#define local static
#define MAX_LINES 100
class Console
{
protected:
static BOOL registered;
HWND handle;
public:
LOGFONT font;
DWORD background;
DWORD foreground;
WORD textHeight;
int firstLine;
int count;
HANDLE text [MAX_LINES];
int length [MAX_LINES];
Console(LPSTR caption="A C++ Console");
~Console();
void show(short mode = SW_SHOWNORMAL);
void update();
BOOL valid() { return (handle != NULL); }
int runModeless();
Console& operator << (LPSTR t);
Console& operator << (char c);
Console& operator << (int i);
Console& operator << (long l);
Console& operator << (WORD i);
Console& operator << (DWORD l);
Console& operator << (double d);
void newLine();
};
#endif